package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_InventoryArea", description = "盘点库位")
@TableName(value = "WMS_InventoryArea")
public class WmsInventoryArea extends FBaseEntity implements Serializable {


    
    @NotNull(message="[盘点单主表ID]不能为空")
    @ApiModelProperty("盘点单主表ID")
    @TableField(value = "mainId")
    private Long mainId;
    
    @NotNull(message="[盘点库位ID]不能为空")
    @ApiModelProperty("盘点库位ID")
    @TableField(value = "areaId")
    private Long areaId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;

}

